<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>NPR Timeline Widget</title>
<link href="http://npr-simile-timeline.googlecode.com/svn/trunk/timeline.css" rel="stylesheet" type="text/css" />
<script src="http://simile.mit.edu/timeline/api/timeline-api.js" type="text/javascript"></script>
<script src="http://npr-simile-timeline.googlecode.com/svn/trunk/nprtimeline.js" type="text/javascript"></script>
<script type="text/javascript" language="JavaScript">
<!-- //

var query = window.location.search;
query = query.substr(1);
// alert(query);

// for additional variables that may find their way into the query string check out the way the values for document.selectionForm.queryBox.value are built here:
// http://npr-simile-timeline.googlecode.com/svn/trunk/qglite.js

function embedThis(){

embedAddress = "http://npr-simile-timeline.googlecode.com/svn/trunk/embed.html?";
embedAddress = embedAddress + query;
// alert(embedAddress);

embedString = "Embed Timeline";
// alert(embedString);

document.getElementById('linkToEmbed').innerHTML = embedString;
document.getElementById('linkToEmbed').href = embedAddress;
document.getElementById('linkToEmbed').target = "_top";


shareAddress = document.location.href;
// alert(shareAddress);

shareString = "Link To Timeline";
// alert(shareString);

document.getElementById('linkToShare').innerHTML = shareString;
document.getElementById('linkToShare').href = shareAddress;
document.getElementById('linkToShare').target = "_top";

return;

}
// -->
</script>
</head>
<body onLoad="embedThis();" onresize="onResize();" >
<div id="my-timeline" class="timeline-default" style="height: 95%;width: 100%;"></div>
<div id="embedDiv" style="height: 5%;background-color:#DDDDDD;text-align: right;font-size:small;font-family: arial,sans-serif;"><a href="" id="linkToShare"></a> | <a href="" id="linkToEmbed"></a> | <a href="http://npr-simile-timeline.googlecode.com" target="_top">About the NPR Timeline</a></div>


<script type="text/javascript" language="JavaScript">
// alert(query);
// alert(queryString);
document.write('<sc'+'ript');
document.write(' type="text/javascript"');
document.write(' language="JavaScript"');
document.write(' src="'+ query +'">');
document.write('</sc'+'ript>');
</script>
    
</body>
</html>